<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录</title>
<link rel="stylesheet" type="text/css" href="__CSS__/public.css" />
<link rel="stylesheet" type="text/css" href="__CSS__/page.css" />
<script type="text/javascript" src="__JS__/jquery.min.js"></script>
<script type="text/javascript" src="__JS__/public.js"></script>
</head>
<body>

	<!-- 登录页面头部 -->
	<div class="logHead">
		<img src="__STATIC__/images/logLOGO.png" />
	</div>
	<!-- 登录页面头部结束 -->

	<!-- 登录body -->
	<div class="logDiv">
		<img class="logBanner" src="__STATIC__/images/logBanner.png" />
		<div class="logGet">
			<!-- 头部提示信息 -->
			<div class="logD logDtip">
				<p class="p1">登录</p>
				<p class="p2"><a href="<{:url('adduser','','')}>">&nbsp&nbsp&nbsp注册</a></p>
				<p class="p2"><a href="<{:url('chongpsw','','')}>">忘记密码&nbsp&nbsp&nbsp|</a></p>
			</div>
			<!-- 输入框 -->
			<form action="" method="post">
			<div class="lgD">
				<img class="img1" src="__STATIC__/images/logName.png" /><input type="text"
					placeholder="输入用户名" name="username"  />
			</div>
			<div class="lgD">
				<img class="img1" src="__STATIC__/images/logPwd.png" /><input type="text"
					placeholder="输入用户密码" name="password" />
			</div>
			<div class="lgD logD2" >
				<input class="getYZM" type="text" name="captcha" />
				<div class="logYZM">
					<!--<img src="" alt="captcha" />-->
					<!--<img class="yzm" src="{:captcha_src()}" />-->
					<img onclick="this.src='<{:captcha_src()}>?'+Math.random()" src="<{:captcha_src()}>"  class="yzm" />

				</div>
			</div>
			<div class="logC">
				<input type="checkbox" name="kuang" value="123" id="a" /><label for="a">30天内免登陆</label><br />
				<button>登录</button>
			</div>
				<div class="logC">

					<a style="display: inline-block;width:315px;height:45px;background-color: #EE7700;text-align: center;font-size: 18px;line-height: 45px;color: white" href="<{:url('logink','','')}>">快捷登录</a>
				</div>
			</form>
		</div>
	</div>
	<!-- 登录body  end -->

	<!-- 登录页面底部 -->
	<div class="logFoot">
		<p class="p1">版权所有：******</p>
		<p class="p2">****** 登记序号：黑ICP备*******号</p>
	</div>
	<!-- 登录页面底部end -->
	<!--<script>-->
		<!--var username = document.querySelectorAll("input")[0]; //获取input节点类型-->
		<!--var password = document.querySelectorAll("input")[1];-->
		<!--var check = document.querySelectorAll("input")[2];-->
		<!--var sub = document.querySelector("button");//选单个元素没有all-->

		<!--function rewrite() {-->
			<!--console.log(document.cookie)-->
			<!--var arr = document.cookie.split("; ");-->
			<!--for(var i = 0; i < arr.length; i++) {-->
				<!--var arr2 = arr[i].split("=");-->

				<!--if(arr2[0] == "checkvalue" && arr2[1] == "true") {//判断是否选择免登陆-->
					<!--//选择免登陆要重新遍历数组，否则还会是原来的值-->
					<!--for(var j = 0; j < arr.length; j++) {-->
						<!--var arr3 = arr[j].split("=");-->
						<!--if(arr3[0] == "usname") //注意双等，获取-->
						<!--{-->
							<!--console.log('有用户名');-->
							<!--username.value = arr3[1];-->
						<!--} else if(arr3[0] == "psd") {-->
							<!--console.log('有密码');-->
							<!--password.value = arr3[1];-->
						<!--} else if(arr3[0] == "checkvalue") {-->
							<!--console.log('是免登陆');-->
							<!--console.log(arr3[1])-->

							<!--check.checked = arr3[1] == "true" ? true : false; //字符串转化为布尔值-->
							<!--console.log(check.checked)-->
						<!--}-->
					<!--}-->
				<!--}-->
			<!--}-->
		<!--}-->
		<!--rewrite()-->

		<!--/*console.log(arr);*/-->

		<!--//点击登录保存用户名、密码和登录状态-->
		<!--sub.addEventListener("click", function() { //给sub添加点击事件，匿名函数-->
			<!--var usname = username.value;-->
			<!--var psd = password.value;-->
			<!--var checkvalue = check.checked;-->
			<!--console.log(usname, psd, checkvalue);-->
			<!--var date = new Date();-->
			<!--date.setDate(date.getDate() + 30); //设置天数-->
			<!--document.cookie = "usname=" + usname + ";expires=" + date;-->
			<!--document.cookie = "psd=" + psd + ";expires=" + date;-->
			<!--document.cookie = "checkvalue=" + checkvalue + ";expires=" + date;-->
		<!--})-->
	<!--</script>-->

</body>
</html>